package internal

import (
	"parse-template/src/utils"
)

var SysVariable = make(map[string]string, 100)

// 系统内置变量
var PathData = "path_data"
var PathRoot = "path_root"

func InitSysVariable() {
	rootPath := utils.GetCurrentAbPathByExecutable()
	rootPath = utils.ConvertLinuxPathSeparator(rootPath)
	SysVariable[PathRoot] = rootPath
	SysVariable[PathData] = rootPath + "/data"
}
